

package pacman.skills;


/**
 * This class represents pacman's upgraded Bite2
 * @author Leonardo
 */
public class Bite3 extends Skill{

    /**
     * Set the inicial parameters of skill
     * Set unavailable at the begining of the game
     */
    public Bite3(){
        this.mana = 2;
        this.hit = 4;
        this.cost = 2;
        this.tick = 3;
        this.isActive = false;
        this.spriteIndex = 0;
    }

    
    /**
     * Activation of skill
     * @param cost Cost of skill
     * @param active If Bite2 is active
     * @param bite2 Disables Bite2 if it's all ok
     * @return cost
     */
    public int Activate(int cost, boolean active, Bite2 bite2){
        if(cost == this.cost && active == true){
            this.isActive = true;
            bite2.isActive = false;
        }
        return this.cost;
    }

   
}
